# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py3-evohome-client
pkgver=0.3.3
pkgrel=1
pkgdesc="Python client to access the Evohome web service"
url="https://github.com/watchforstock/evohome-client"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-requests"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-requests-mock"
source="evohome-client-$pkgver.tar.gz::https://github.com/watchforstock/evohome-client/archive/$pkgver.tar.gz"
builddir="$srcdir"/evohome-client-$pkgver

replaces="py-evohome-client" # Backwards compatibility
provides="py-evohome-client=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	mkdir test-reports
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2f140f52c5b1236aeaecd27b16c0f490e0bbb361a07ef1e9e4ca14e856f840aa62f110c14f65bacf6f7eecb9282506aabf2c88378810c0db32557effe291e66c  evohome-client-0.3.3.tar.gz"
